home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / demo / client / menu_threads.cs < prev   
Encoding:
Text File  |  2005-11-23  |  2.9 KB  |  110 lines

  1.  
  2. // Stack used to track what gui thread we are viewing
  3. new SimSet(menu_thread_stack);
  4.  
  5. // Define various topic threads
  6.  
  7. new SimSet(main_menu_thread);
  8.    main_menu_thread.add(MainMenuDlg);
  9.  
  10. new SimSet(overview_thread);
  11.    overview_thread.add(overview_main);
  12.  
  13. new SimSet(features_thread);
  14.    features_thread.add(features_main);
  15.    features_thread.add(features_script);
  16.    features_thread.add(features_gui);
  17.    features_thread.add(features_net);
  18.    features_thread.add(features_render);
  19.    features_thread.add(features_terrain);
  20.    features_thread.add(features_interior);
  21.    features_thread.add(features_mesh);
  22.    features_thread.add(features_water);
  23.    features_thread.add(features_sound);
  24.   
  25. new SimSet(platform_thread);
  26.    platform_thread.add(platform_T2D);
  27.    platform_thread.add(platform_TSE);
  28.    
  29. new SimSet(tools_thread);
  30.    tools_thread.add(tools_main);
  31.    tools_thread.add(tools_gui);
  32.    tools_thread.add(tools_world);
  33.    tools_thread.add(tools_heightfield);
  34.    tools_thread.add(tools_texture);
  35.    tools_thread.add(tools_terrain);
  36.    tools_thread.add(tools_showtool_pro);
  37.    tools_thread.add(tools_rts_kit);
  38.    tools_thread.add(tools_lighting_kit);
  39.    tools_thread.add(tools_content_packs);
  40.    tools_thread.add(tools_books_docs);
  41.  
  42. new SimSet(products_thread);
  43.    products_thread.add(product_main);
  44.    products_thread.add(product_tribes2);
  45.    products_thread.add(product_hunting);
  46.    products_thread.add(product_marbleblast);
  47.    products_thread.add(product_thinktanks);
  48.    products_thread.add(product_tenniscritters);
  49.    products_thread.add(product_orbz);
  50.  
  51. new SimSet(testimonials_thread);
  52.    testimonials_thread.add(community);
  53.    testimonials_thread.add(testimonials_main);
  54.  
  55. new SimSet(license_thread);
  56.    license_thread.add(publishing);
  57.    license_thread.add(license_main);
  58.    license_thread.add(license_indie);
  59.    license_thread.add(license_corp);
  60.  
  61. new SimSet(play_game_thread);
  62.    play_game_thread.add(StartMissionGui);
  63.    play_game_thread.add(JoinServerGui);
  64.  
  65. new SimSet(garagegames_thread);
  66.    garagegames_thread.add(garageGames_main);
  67.  
  68. new SimSet(theora_thread);
  69.    theora_thread.add(theora_main);
  70.  
  71.  
  72.  
  73. package AutoLoad_GuiMLTextCtrl_Contents
  74. {
  75.    function GuiMLTextCtrl::onWake(%this)
  76.    {
  77.       if (%this.filename !$= "")
  78.       {
  79.          %fo = new FileObject();
  80.          %fo.openForRead(%this.filename);
  81.          %text = "";
  82.          while(!%fo.isEOF())
  83.             %text = %text @ %fo.readLine() @ "\n";
  84.  
  85.          %fo.delete();
  86.          %this.setText(%text);
  87.       }
  88.       //parent::onWake(%this);
  89.    }
  90.  
  91.    function gotoWebPage(%url)
  92.    {
  93.       if(isFullScreen())
  94.          toggleFullScreen();
  95.       Parent::gotoWebPage(%url);
  96.    }
  97.  
  98.    function GuiMLTextCtrl::onURL(%this, %url)
  99.    {
  100.       if (getSubStr(%url, 0, 9) $= "gamelink ")
  101.          eval( getSubStr(%url, 9, 1024) );
  102.       else
  103.          gotoWebPage( %url );
  104.    }   
  105.  
  106. };
  107.  
  108. activatePackage(AutoLoad_GuiMLTextCtrl_Contents);
  109.  
  110.